{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            理赔管理
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">

                                <!--<a style="float: right" href="{:url('console/information/create')}"-->
                                   <!--class="btn btn-success btn-sm">创建信息</a>-->
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="get" action="">

                                    <div class="title_left">

                                        <div class="col-md-2 col-sm-3 col-xs-3 form-group pull-left top_search">
                                            <div class="input-group">
                                                <input type="text" class="form-control" name="title"
                                                       placeholder="请输入内容..." value="{:input('title')}">
                                            </div>
                                        </div>
                                        <button type="submit" class="btn btn-primary" style="margin-left: 10px;">搜 索</button>
                                    </div>

                                    <table class="table table-striped table-bordered">
                                        <thead>
                                        <tr class="success">
                                            <th>ID</th>
                                            <th>用户名</th>
                                            <th>车主姓名</th>
                                            <th>手机号</th>
                                            <th>投保城市</th>
                                            <th>车牌号</th>
                                            <th>品牌类型</th>
                                            <th>车辆识别码</th>
                                            <th>发动机号</th>
                                            <th>注册登记日</th>
                                            <th>保险到期日</th>
                                            <th width="">审核状态</th>
                                            <th width="">一级审核</th>
                                            <th width="">二级审核</th>
                                            <th width="">三级审核</th>
                                            <th>创建日期</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                        {empty name="data"}
                                        <tr><td colspan="13"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}
                                        {volist name="data" id="item"}
                                        <tr><td>{$item.id}</td>
                                            <td>{$item.username}</td>
                                            <td>{$item.car_name}</td>
                                            <td>{$item.tel}</td>
                                            <td>{$item.tb_city}</td>
                                            <td>{$item.car_number}</td>
                                            <td>{$item.brand_type}</td>
                                            <td>{$item.car_code}</td>
                                            <td>{$item.engine_number}</td>
                                            <td>{$item.register_time}</td>
                                            <td>{$item.insurance_expiration_time}</td>
                                            <td>{$item.auding_text}</td>
                                            <td>{$item.auding_text1}</td>
                                            <td>{$item.auding_text2}</td>
                                            <td>{$item.auding_text3}</td>
                                            <td>{:substr($item.create_time,0,10)}</td>
                                            <td>
                                                <a href="{:url('update', ['id' => $item['id']])}"

                                                   class="label label-success">

                                                    <span class="fa fa-pencil"></span>&nbsp;&nbsp;查 看

                                                </a>
                                            </td>
                                            </td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                        <tbody align="left">
                                        {notempty name="data"}
                                        {/notempty}
                                        </tbody>
                                    </table>
                                    <!-- 分页 -->
                                    <div style="float: right;margin-top: -30px;">{$data->render()}</div>
                                    <!--<button type="button" class="btn btn-info" style="margin-top: 20px;" onclick="dc({:input('coupon_id')})">车库导出</button>-->
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
<script type="text/javascript">
    // list
    $(document).ready(function () {
        // select2
        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true
        });
    });
    function dc(){

        var title = "{:input('title')}";
        var type = "{:input('type')}";
        var single_id = "{:input('single_id')}";
        var both = "{:input('interval_timer','')}";

        window.location.href = "{:url('index')}?export=123&p=10000"+status+"&title="+title+"&type="+type+"&single_id="+single_id+'&both='+both;
    }
    $('#interval_timer').daterangepicker(null,
        function(start, end, label) {
//                console.log(start.toISOString(), end.toISOString(), label);
        });
</script>